package com.snail.mobile.sim.oss.userInfo.model;
// Generated 2014-8-7 10:04:57 by Hibernate Tools 3.1.0.beta4

import java.sql.Timestamp;


/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="user_info"
 *     
 */

public class UserInfo extends com.sungrid.seine.oss.framework.model.BaseObject implements java.io.Serializable {


    // Fields    

    private Integer nid;
    private Integer naccId;
    private String sacc;
    private String sname;
    private String snickName;
    private String sphone;
    private String semail;
    private String sheadPic;
    private String sheadPicMd5;
    private String sheadBkgPic;
    private String sheadBkgPicMd5;
    private Timestamp dupdate;
    private Integer nstatus;
    private String sip;
    private String scurCt;
    private Timestamp dcreate;


    // Constructors

    /** default constructor */
    public UserInfo() {
    }

	/** minimal constructor */
    public UserInfo(String sphone) {
        this.sphone = sphone;
    }
    
    /** full constructor */
    public UserInfo(Integer naccId, String sacc, String sname, String snickName, String sphone, String semail, String sheadPic, String sheadPicMd5, String sheadBkgPic, String sheadBkgPicMd5, Timestamp dupdate, Integer nstatus, String sip, String scurCt, Timestamp dcreate) {
        this.naccId = naccId;
        this.sacc = sacc;
        this.sname = sname;
        this.snickName = snickName;
        this.sphone = sphone;
        this.semail = semail;
        this.sheadPic = sheadPic;
        this.sheadPicMd5 = sheadPicMd5;
        this.sheadBkgPic = sheadBkgPic;
        this.sheadBkgPicMd5 = sheadBkgPicMd5;
        this.dupdate = dupdate;
        this.nstatus = nstatus;
        this.sip = sip;
        this.scurCt = scurCt;
        this.dcreate = dcreate;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="n_id"
     *         
     */

    public Integer getNid() {
        return this.nid;
    }
    
    public void setNid(Integer nid) {
        this.nid = nid;
    }
    /**       
     *      *            @hibernate.property
     *             column="n_acc_id"
     *             length="11"
     *         
     */

    public Integer getNaccId() {
        return this.naccId;
    }
    
    public void setNaccId(Integer naccId) {
        this.naccId = naccId;
    }
    /**       
     *      *            @hibernate.property
     *             column="s_acc"
     *             unique="true"
     *             length="60"
     *         
     */

    public String getSacc() {
        return this.sacc;
    }
    
    public void setSacc(String sacc) {
        this.sacc = sacc;
    }
    /**       
     *      *            @hibernate.property
     *             column="s_name"
     *             length="255"
     *         
     */

    public String getSname() {
        return this.sname;
    }
    
    public void setSname(String sname) {
        this.sname = sname;
    }
    /**       
     *      *            @hibernate.property
     *             column="s_nick_name"
     *             length="255"
     *         
     */

    public String getSnickName() {
        return this.snickName;
    }
    
    public void setSnickName(String snickName) {
        this.snickName = snickName;
    }
    /**       
     *      *            @hibernate.property
     *             column="s_phone"
     *             length="60"
     *             not-null="true"
     *         
     */

    public String getSphone() {
        return this.sphone;
    }
    
    public void setSphone(String sphone) {
        this.sphone = sphone;
    }
    /**       
     *      *            @hibernate.property
     *             column="s_email"
     *             length="255"
     *         
     */

    public String getSemail() {
        return this.semail;
    }
    
    public void setSemail(String semail) {
        this.semail = semail;
    }
    /**       
     *      *            @hibernate.property
     *             column="s_head_pic"
     *             length="255"
     *         
     */

    public String getSheadPic() {
        return this.sheadPic;
    }
    
    public void setSheadPic(String sheadPic) {
        this.sheadPic = sheadPic;
    }
    /**       
     *      *            @hibernate.property
     *             column="s_head_pic_md5"
     *             length="255"
     *         
     */

    public String getSheadPicMd5() {
        return this.sheadPicMd5;
    }
    
    public void setSheadPicMd5(String sheadPicMd5) {
        this.sheadPicMd5 = sheadPicMd5;
    }
    /**       
     *      *            @hibernate.property
     *             column="s_head_bkg_pic"
     *             length="255"
     *         
     */

    public String getSheadBkgPic() {
        return this.sheadBkgPic;
    }
    
    public void setSheadBkgPic(String sheadBkgPic) {
        this.sheadBkgPic = sheadBkgPic;
    }
    /**       
     *      *            @hibernate.property
     *             column="s_head_bkg_pic_md5"
     *             length="255"
     *         
     */

    public String getSheadBkgPicMd5() {
        return this.sheadBkgPicMd5;
    }
    
    public void setSheadBkgPicMd5(String sheadBkgPicMd5) {
        this.sheadBkgPicMd5 = sheadBkgPicMd5;
    }
    /**       
     *      *            @hibernate.property
     *             column="d_update"
     *             length="19"
     *         
     */

    public Timestamp getDupdate() {
        return this.dupdate;
    }
    
    public void setDupdate(Timestamp dupdate) {
        this.dupdate = dupdate;
    }
    /**       
     *      *            @hibernate.property
     *             column="n_status"
     *             length="2"
     *         
     */

    public Integer getNstatus() {
        return this.nstatus;
    }
    
    public void setNstatus(Integer nstatus) {
        this.nstatus = nstatus;
    }
    /**       
     *      *            @hibernate.property
     *             column="s_ip"
     *             length="255"
     *         
     */

    public String getSip() {
        return this.sip;
    }
    
    public void setSip(String sip) {
        this.sip = sip;
    }
    /**       
     *      *            @hibernate.property
     *             column="s_cur_ct"
     *             length="255"
     *         
     */

    public String getScurCt() {
        return this.scurCt;
    }
    
    public void setScurCt(String scurCt) {
        this.scurCt = scurCt;
    }
    /**       
     *      *            @hibernate.property
     *             column="d_create"
     *             length="19"
     *         
     */

    public Timestamp getDcreate() {
        return this.dcreate;
    }
    
    public void setDcreate(Timestamp dcreate) {
        this.dcreate = dcreate;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("naccId").append("='").append(getNaccId()).append("' ");			
      buffer.append("sacc").append("='").append(getSacc()).append("' ");			
      buffer.append("sname").append("='").append(getSname()).append("' ");			
      buffer.append("snickName").append("='").append(getSnickName()).append("' ");			
      buffer.append("sphone").append("='").append(getSphone()).append("' ");			
      buffer.append("semail").append("='").append(getSemail()).append("' ");			
      buffer.append("sheadPic").append("='").append(getSheadPic()).append("' ");			
      buffer.append("sheadPicMd5").append("='").append(getSheadPicMd5()).append("' ");			
      buffer.append("sheadBkgPic").append("='").append(getSheadBkgPic()).append("' ");			
      buffer.append("sheadBkgPicMd5").append("='").append(getSheadBkgPicMd5()).append("' ");			
      buffer.append("dupdate").append("='").append(getDupdate()).append("' ");			
      buffer.append("nstatus").append("='").append(getNstatus()).append("' ");			
      buffer.append("sip").append("='").append(getSip()).append("' ");			
      buffer.append("scurCt").append("='").append(getScurCt()).append("' ");			
      buffer.append("dcreate").append("='").append(getDcreate()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof UserInfo) ) return false;
		 UserInfo castOther = ( UserInfo ) other; 
         
		 return ( (this.getNid()==castOther.getNid()) || ( this.getNid()!=null && castOther.getNid()!=null && this.getNid().equals(castOther.getNid()) ) )
 && ( (this.getNaccId()==castOther.getNaccId()) || ( this.getNaccId()!=null && castOther.getNaccId()!=null && this.getNaccId().equals(castOther.getNaccId()) ) )
 && ( (this.getSacc()==castOther.getSacc()) || ( this.getSacc()!=null && castOther.getSacc()!=null && this.getSacc().equals(castOther.getSacc()) ) )
 && ( (this.getSname()==castOther.getSname()) || ( this.getSname()!=null && castOther.getSname()!=null && this.getSname().equals(castOther.getSname()) ) )
 && ( (this.getSnickName()==castOther.getSnickName()) || ( this.getSnickName()!=null && castOther.getSnickName()!=null && this.getSnickName().equals(castOther.getSnickName()) ) )
 && ( (this.getSphone()==castOther.getSphone()) || ( this.getSphone()!=null && castOther.getSphone()!=null && this.getSphone().equals(castOther.getSphone()) ) )
 && ( (this.getSemail()==castOther.getSemail()) || ( this.getSemail()!=null && castOther.getSemail()!=null && this.getSemail().equals(castOther.getSemail()) ) )
 && ( (this.getSheadPic()==castOther.getSheadPic()) || ( this.getSheadPic()!=null && castOther.getSheadPic()!=null && this.getSheadPic().equals(castOther.getSheadPic()) ) )
 && ( (this.getSheadPicMd5()==castOther.getSheadPicMd5()) || ( this.getSheadPicMd5()!=null && castOther.getSheadPicMd5()!=null && this.getSheadPicMd5().equals(castOther.getSheadPicMd5()) ) )
 && ( (this.getSheadBkgPic()==castOther.getSheadBkgPic()) || ( this.getSheadBkgPic()!=null && castOther.getSheadBkgPic()!=null && this.getSheadBkgPic().equals(castOther.getSheadBkgPic()) ) )
 && ( (this.getSheadBkgPicMd5()==castOther.getSheadBkgPicMd5()) || ( this.getSheadBkgPicMd5()!=null && castOther.getSheadBkgPicMd5()!=null && this.getSheadBkgPicMd5().equals(castOther.getSheadBkgPicMd5()) ) )
 && ( (this.getDupdate()==castOther.getDupdate()) || ( this.getDupdate()!=null && castOther.getDupdate()!=null && this.getDupdate().equals(castOther.getDupdate()) ) )
 && ( (this.getNstatus()==castOther.getNstatus()) || ( this.getNstatus()!=null && castOther.getNstatus()!=null && this.getNstatus().equals(castOther.getNstatus()) ) )
 && ( (this.getSip()==castOther.getSip()) || ( this.getSip()!=null && castOther.getSip()!=null && this.getSip().equals(castOther.getSip()) ) )
 && ( (this.getScurCt()==castOther.getScurCt()) || ( this.getScurCt()!=null && castOther.getScurCt()!=null && this.getScurCt().equals(castOther.getScurCt()) ) )
 && ( (this.getDcreate()==castOther.getDcreate()) || ( this.getDcreate()!=null && castOther.getDcreate()!=null && this.getDcreate().equals(castOther.getDcreate()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getNid() == null ? 0 : this.getNid().hashCode() );
         result = 37 * result + ( getNaccId() == null ? 0 : this.getNaccId().hashCode() );
         result = 37 * result + ( getSacc() == null ? 0 : this.getSacc().hashCode() );
         result = 37 * result + ( getSname() == null ? 0 : this.getSname().hashCode() );
         result = 37 * result + ( getSnickName() == null ? 0 : this.getSnickName().hashCode() );
         result = 37 * result + ( getSphone() == null ? 0 : this.getSphone().hashCode() );
         result = 37 * result + ( getSemail() == null ? 0 : this.getSemail().hashCode() );
         result = 37 * result + ( getSheadPic() == null ? 0 : this.getSheadPic().hashCode() );
         result = 37 * result + ( getSheadPicMd5() == null ? 0 : this.getSheadPicMd5().hashCode() );
         result = 37 * result + ( getSheadBkgPic() == null ? 0 : this.getSheadBkgPic().hashCode() );
         result = 37 * result + ( getSheadBkgPicMd5() == null ? 0 : this.getSheadBkgPicMd5().hashCode() );
         result = 37 * result + ( getDupdate() == null ? 0 : this.getDupdate().hashCode() );
         result = 37 * result + ( getNstatus() == null ? 0 : this.getNstatus().hashCode() );
         result = 37 * result + ( getSip() == null ? 0 : this.getSip().hashCode() );
         result = 37 * result + ( getScurCt() == null ? 0 : this.getScurCt().hashCode() );
         result = 37 * result + ( getDcreate() == null ? 0 : this.getDcreate().hashCode() );
         return result;
   }   





}
